// to represent a savings account in a bank
public class Savings extends AAccount{
	
	public double interest; // The interest rate at which their money grows.
	boolean isSavings = true;
	
	Savings(int accountNum, int balance, String name, double interest){
		super(accountNum, balance, name);
		this.interest = interest;
	}
	
	@Override
	// Checks if this account is a Savings account (It is).
	public boolean isSavings(){
		return true;
	}
	
	public boolean checkMe(Checker c){
		return c.b.check(balance) && c.n.check(name) && c.s.check(isSavings);
	}

}
